<%--
  Created by IntelliJ IDEA.
  User: zhanzhongxin
  Date: 2021/8/5
  Time: 10:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.xxx.pojo.Student" %>
<%@ page import="com.xxx.pojo.Cla" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    final Cla cla = new Cla("13期");
    final Student stu = new Student("张三", 20, cla);

    request.setAttribute("stu", stu);
%>
<h1>${stu.name}</h1>
<h1>${stu.cla.name}</h1>
<h1>${stu.sex}</h1>
<h1>${stu.age > 10}</h1>
<h1>${stu.age lt 10}</h1>
<h1>${stu.name eq '张三'}</h1>
<h1>${empty stu.name}</h1>
</body>
</html>
